#include "messagelabel.h"

MessageLabel::MessageLabel(QWidget *parent, Qt::WindowFlags f)
    : QLabel(parent, f)
{
    setStyleSheet("background-color:#89D961;"
                  "background-image: url(:/icon/icon/dialog_bubbles.png);"
                  "background-repeat: no-repeat;"
                  "background-size: 100% auto;"
                  "padding-left:50px;"
                  "border:none;");
    setMaximumWidth(200);
}

MessageLabel::MessageLabel(const QString &text, QWidget *parent, Qt::WindowFlags f)
    : QLabel(text, parent, f)
{
    setStyleSheet("background-color:#89D961;"
                  "background-image: url(:/icon/icon/dialog_bubbles.png);"
                  "background-repeat: no-repeat;"
                  "background-size: 100% auto;"
                  "padding-left:10px;"
                  "border:none;");
    setMaximumWidth(200);
}
